var sa = {
  is_first_launch: false,
  launched: false, // 需接口中也做调整，
  _queue: [],
  mpshow_time: null,
  sa_referrer: '直接打开',
  query_share_depth: 0,
  share_distinct_id: '',
  share_method: '',
  current_scene: '',
  inited: false
}

sa.para = {
  // 神策分析数据接收地址
  server_url: '',
  //默认使用队列发数据时候，两条数据发送间的最大间隔
  send_timeout: 1000,
  // 是否允许控制台打印查看埋点数据（建议开启查看）
  show_log: true,
  // 是否允许修改onShareMessage里return的path，用来增加（用户id，分享层级，当前的path），在app onshow中自动获取这些参数来查看具体分享来源，层级等
  allow_amend_share_path: true,
  max_string_length: 300,
  datasend_timeout: 3000,
  source_channel: [],
  batch_send: {
    send_timeout: 6000,
    max_length: 6
  },

  preset_properties: {}
}

sa.platform = ''

sa.lib = {
  version: 'mini_sdk_version',
  name: 'MiniGame',
  method: 'code'
}
sa.properties = {
  $lib: 'MiniGame',
  $lib_version: 'mini_sdk_version'
}

sa.source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term'
sa.latest_source_channel = ['$latest_utm_source', '$latest_utm_medium', '$latest_utm_campaign', '$latest_utm_content', '$latest_utm_term', '$latest_sa_utm']
sa.latest_share_info = ['$latest_share_distinct_id', '$latest_share_url_path', '$latest_share_depth', '$latest_share_method']

sa.currentProps = {}

export default sa
